<?php

namespace App\Model;


class UserBlockRule extends BaseModel
{
    protected $connection = 'mysql';
    protected $table = 'user_block_rule';
    
    public function getRule(array $condition= []){
        $query = new self();
        
        if(!empty($condition)) $query = $query->where($condition);
        return $query->get(['name','id','pid']);
    }
}
